<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${commentList !=null}">
	<c:forEach var="comment" items="${commentList }">
		<table width="100%" border="1" cellspacing="0" cellpadding="0">
			<tr>
				<td colspan="5">
					<div id="commentsView_${comments.commentNo }">
						<%@include file="commentsview.jsp"%>
					</div>
				</td>
			</tr>
		</table>
	</c:forEach>
</c:if>

	<form id="commentsaddForm_${boarditems.boarditemsNo }" method="post">
		<input type="hidden" name="memberId" value="${login.memberId }">
		<input type="hidden" name="boarditemsNo" value="${boarditems.boarditemsNo }"> 
		<table width="100%" border="1" cellspacing="0" cellpadding="0">

			<tr>
				<td colspan=4 style="padding: 2px 2px 2px 5px">
					<textarea id="commentView" name="commentView" style="width: 763px; height: 50px"></textarea></td>
				<td style="padding: 2px 2px 2px 0px">
					<input type="button" value="댓글" style="width: 190px; height: 50px" onclick="javascript:commentsadd(${boarditems.boarditemsNo })">
				</td>
				
			</tr>

		</table>
	</form>

